package com.joint.cloud.subject4_1_1.helloworld.controller.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("测试DEMO入参")
public class DemoParam {

    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty("名称")
    @NotEmpty(message = "名称不能为空")
    private String name;

}
